package com.njitzx.entity.dto;

import com.njitzx.entity.po.Attribute;
import com.njitzx.entity.po.GoodsAttr;
import com.njitzx.entity.po.GoodsPics;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsDTO {

    private Integer goodsId;
    @NotEmpty
    private String goodsName;
    @NotEmpty
    private Double goodsPrice;
    @NotEmpty
    private Integer goodsNumber;
    @NotEmpty
    private Integer goodsWeight;

    private String goodsIntroduce;
    @NotEmpty
    private String goodsCat;

    private List<GoodsPics> pics;

    private List<GoodsAttr> attrs;

    private Date createTime;

    private Date updateTime;

    private Integer catOneId;

    private Integer catTwoId;

    private Integer catThreeId;

    private Integer catId;
}
